// dlg.txt

begintalkscript;

variables;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(37,1) == 0;
	question = "special";
	text1 = "You finally complete your exhausting climb to the top of Lerman's Pass. There is a large fortress at the top, blocking the way through. It has huge, thick stone walls, centuries old, topped with spikes and a thick covering of ice.";
	text2 = "No Shapers or loyalist soldiers are here to greet and bother you. Instead, you see the signs of rogues. Bones. Creation tracks. The occasional spatter of frozen gore. The Shapers have lost control of this pass, and they have not yet retaken it.";
	text3 = "You can barely hear the snarls and hisses of the beasts over the wind. They are no doubt huddled in nooks in the valley wall or the ruins of the fort buildings.";
	text4 = "As you look around, you start to feel confused for a moment. Then the feeling passes. At first, you think that it's just fatigue, but then the unnerving sensation of lightheadedness returns. Something strange is happening up here.";
	action = SET_SDF 37 1 1;

begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(37,2) == 0;
	question = "special";
	text1 = "You approach the single, huge gate that allows entry into the keep. It has been left open for you. This is enough to make you very suspicious.";
	text2 = "You peer through and see a large courtyard. A single creature floats up and down in the middle. It is one of the rarest and most dangerous sorts of creation: a gazer.";
	text3 = "These creatures are killed on sight by the Shapers, and you can understand why. They are powerful, arrogant, unpredictable, and they possess the ability to cloud the minds of those near them. Not even Shapers can always resist them.";
	text4 = "The creature bobs in the air in the middle of the courtyard. Its many eyes make a show of not noticing you. It pretends to be harmless, but the truth is obvious. Entering its lair would be very dangerous.";
	action = SET_SDF 37 2 1;

begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = get_sdf(37,3) == 0;
	question = "special";
	text1 = "You walk out of the courtyard into the main courtyard of the fort. It is dominated by a huge stone building to the west. A single, large door faces you. It is closed. You see no sign of the gazer.";
	text2 = "To the northwest, you can see that someone has dug an array of pits in the frozen circle, lined with bricks, and filled with something bubbling and foul.";
	text3 = "Then you look to the southwest and see someone watching you. A human, the first you have seen in here. He wears armor and a sword hangs from his side. His hand is wrapped around something hanging from a chain around his neck.";
	text4 = "When he sees you, he flees. As he turns, you hear furious hissing and bubbling from the pools to the north. Hideous, slimy creatures start to crawl out of them.";
	action = SET_SDF 37 3 1;
	code =
		activate_hidden_group(2);
	break;
	
begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = get_sdf(37,4) == 0;
	question = "special";
	text1 = "You get close to the breeding pools. They are filled with noxious, hissing goop, probably a mix of the gazer's own creation. It is essence, but poisoned with other substances. The perfect medium for breeding the nasty worms.";
	text2 = "When you get close, the pools bubble and spit at you. Being near them would be unpleasant.";
	text3 = "As you look for a safe route around them, more worms start to slither out.";
	action = SET_SDF 37 4 1;
	code =
		activate_hidden_group(2);
	break;

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = get_sdf(37,5) == 0;
	question = "special";
	text1 = "At the back wall of this cave, you are able to see how the gazer was able to take this fort from the Shapers. It is one of the Unbound.";
	text2 = "It has survived to rampage longer than most, but the battles it has taken part in and the enormous strain of the power contained within it have started to take their toll.";
	text3 = "Its glow has faded. Its leg has broken and healed at a painful angle. It is covered with scars. It no longer even has the strength to mindlessly attack anything it sees.";
	text4 = "It stares at you and lets out a long, angry hiss. It is in too much pain to want to fight anymore. This, of course, doesn't mean that it's not dangerous.";
	action = SET_SDF 37 5 1;

begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "You get a closer look at the lone human in this fort. His armor bears a commander's insignia. His hair is tinged with gray. He must have been the leader here, before Talis-Eye came. Now his mind is entirely gone.";
	text2 = "Now his glazed eyes don't seem to recognize where he is or who you are. Talis-Eye implanted some suggestions in his mind, and he follows them. Now that you are close enough, you can see the item that hangs around his neck. It's a key.";
	text3 = "Though the gazer has control of this unfortunate, you see no harm in trying to weaken the control. As you spar with him, you speak to him. You calmly remind him of who he is and where his loyalties lie.";
	text4 = "For a moment, you seem to get through to him. The gazer's control weakens slightly. He starts to fight less effectively. That is the best you can do. Only death will free him from his servitude.";
	code =
		if (get_stat(20) < 7) {
			rs(3); rs(4);
			}
			else set_boss_level(73,1);
	break;

begintalknode 7;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "The captain of the keep falls to the ground. He doesn't seem to be aware that he has been mortally wounded. He flops around pathetically, trying to recover his blade and return to his feet.";
	text2 = "It does no good. The moment he dies, he is still aware of nothing but his desire to follow the gazer's orders.";
	text3 = "You take the key from around his neck.";
	
begintalknode 8;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "You open the case. It is full of records from before this keep was lost to the rogues. You flip through the papers. They are surprisingly intact and pretty much useless.";
	text3 = "Then you find a folder at the bottom. It contains a sheaf of paper, each page of which describes several creations. It is a record of all of the unusual creations that passed through here over a two-year period. You take it.";
	code =
		if ((gf(35,12) == 0) || (gf(37,8) > 0)) {
			rs(3);
			}
			else {
				sf(37,8,1);
				set_spec_item(14,1);
				}
	break;

begintalknode 10;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "It doesn't look like anyone has been in these quarters since the keep was captured. A Shaper must have been staying here. At least, only a Shaper would be allowed to have this journal.";
	text2 = "The notes of this Shaper are mainly about the creation of batons and other such small, portable creatures. In a section on creating shells and frames for delicate creations, you do find one interesting aside:";
	text3 = "_I have obtained, in an exchange, a valuable bit of information. A pair of purified gauntlets can be augmented with pure quicksilver or solidified flame._";
	text4 = "_Both improvements add to the magical energy of the wearer. The former aids in Shaping, the latter in coarser techniques. Both substances, one after the other, can give a greater effect. Of course, order matters._";
	text5 = "_The next time I obtain the proper materials, I must go to Helft to make the attempt. Captain Bhara is more than competent enough to defend the fort in my absence._";

begintalknode 11;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

	
begintalknode 12;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "Name";
	text1 = "You enter the courtyard very carefully, edging your way toward the gazer. The feeling of confusion increases as you get closer to it. You are very careful to maintain control of your mind. It will not be able to command you.";


begintalknode 13;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "Then, when you get close, it turns. Of course, it knew you were here all along. It rotates in the air and all of its eyes gaze at you. It says, _We welcome you. We are Talis-Eye, and this place is ours._";
	text3 = "_We are thankful at all of the food and treasure the Shapers send to us. You will be the next crop we harvest._";
	
begintalknode 14;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Oh, no. (Run away.)";
	text1 = "You turn and try to run out of the open door. Then you realize that it is farther away than you thought. You tried to only walk a short distance into the courtyard. You ended up walking farther in than you intended.";
	text2 = "While the gazer couldn't control you, it could temporarily interfere with your senses. You grimly watch as the door begins to move.";
	action = END_TALK;
	
begintalknode 15;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "I don't want to fight. I only want to pass through.";
	text1 = "The gazer gives a huge, toothy grin. _We do not negotiate with your kind. We feed on you. Look back. See your doom._";
	text2 = "You look back at the exit, only to realize that it is farther away than you thought. You tried to only walk a short distance into the courtyard. You ended up walking farther in than you intended.";
	text3 = "While the gazer couldn't control you, it could temporarily interfere with your senses. You grimly watch as the door begins to move.";
	action = END_TALK;

begintalknode 16;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "It is I who will destroy you.";
	text1 = "The gazer gives a huge, toothy grin. _You are not the first to try. You will be the next to fail. We feed on you. Look back. See your doom._";
	text2 = "You look back at the exit, only to realize that it is farther away than you thought. You tried to only walk a short distance into the courtyard. You ended up walking farther in than you intended.";
	text3 = "While the gazer couldn't control you, it could temporarily interfere with your senses. You grimly watch as the door begins to move.";
	action = END_TALK;

begintalknode 19;
	state = -1;
	nextstate = 20;
	condition = 1;
	question = "";
	text1 = "You look back at the gazer. Its smug smile fills you with a rage more distracting and disorienting than anything it could do to you. It chuckles. Its eyestalks quiver happily.";
	text2 = "_Someday, the Shapers will send a real force here. Then we will take our treasures and leave the Unbound and other pets to their fate. Until then, it will take more than you to end us._";

begintalknode 20;
	state = 20;
	nextstate = -1;
	condition = 1;
	question = "The Unbound?";
	text1 = "_It took the force of us, aided by an Unbound we manipulated, to wrest this fort from the Shapers. It was a challenge, of course. The Shapers are never weak. But nobody is invulnerable to a clever, determined attack._";

begintalknode 21;
	state = 20;
	nextstate = -1;
	condition = 1;
	question = "How did you take over a Shaper fortress?";
	text1 = "_The Shapers were foolish and arrogant. But when are they not? They left the fort in command of one not of their number. He was no match for us. We took his mind. He is our plaything now, and he will be that way until he dies._";
	
begintalknode 22;
	state = 20;
	nextstate = -1;
	condition = 1;
	question = "Please spare me!";
	text1 = "_You amuse us. But we will not enslave you like we did the captain of this keep. You have the power of the Shapers. Your mind would not stay properly taken._";
	text2 = "_No, we will feed on you. Lay down your blade if you want to end sooner. This is the mercy we offer._";
	text3 = "It turns and begins to float out of the room. You try to chase it, but the disorientation is too much. You slip on the ice as it quickly hovers away.";
	action = END_TALK;

begintalknode 23;
	state = 20;
	nextstate = -1;
	condition = 1;
	question = "I will destroy you, monster. (Attack.)";
	text1 = "It laughs, turns, and begins to float out of the room. You try to chase it, but the disorientation is too much. You slip on the ice as it quickly hovers away.";
	action = END_TALK;

begintalknode 24;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "You regain control of your mind. Its tricks are familiar to you now. It will not baffle you so easily in the future. As you prepare to give chase, however, you hear snarls and roars. Talis-Eye is sending something to hunt you ...";

begintalknode 27;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "This huge hall used to be used for Shaping. Someone with the right training could, from here, make and control enough creations to defend not only the pass but nearby lands as well.";
	text2 = "It is not surprising that the gazer has made its home here. All of its eyes swivel and look at you.";
	text3 = "_We are surprised. We thought you would flee. We did not think you would risk coming here, to come under our control._ You feel slightly confused again. Talis-Eye is trying to take control of you. You shake it off easily.";
	text4 = "The gazer says, _So it is destruction. See what we can do now. See the tricks we have learned from the Shapers. We will destroy you._ You see clouds of mist appear over the platforms. They soon begin to take more substantial form.";

begintalknode 28;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "At last, Talis-Eye's power fades. Its body drops to the floor with a sickening splat. Its carapace cracks open, releasing gruesome fluids. It is pretty dead.";
	text2 = "You note that it has metal rings around many of its eyestalks. A fashion statement, perhaps. One of the rings has a small key hanging from it. You take the key.";
	
begintalknode 29;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
	//

begintalknode 30;
	state = -1;
	nextstate = 30;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 31;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 32;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 33;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 34;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 35;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 36;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 37;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 38;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 39;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 40;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 41;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 42;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 43;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 44;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
//

begintalknode 50;
	state = -1;
	nextstate = 50;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 51;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

	
begintalknode 52;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 53;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 54;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 55;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 56;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 57;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 58;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 59;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 60;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 61;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 62;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 63;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 64;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

//

begintalknode 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 71;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

//

begintalknode 90;
	state = -1;
	nextstate = 90;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 91;
	state = 90;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
		